import { createRouter, createWebHistory } from 'vue-router'
import UploadView from '../views/UploadView.vue'
import FileList from '../components/FileList.vue'
import VolumeViewer from '../components/viewer/VolumeViewer.vue'
import SegmentationView from '../views/analysis/SegmentationView.vue'
import StatisticsView from '../views/analysis/StatisticsView.vue'
import ReportView from '../views/analysis/ReportView.vue'
import SettingsView from '../views/SettingsView.vue'
import WorkflowView from '../views/workflow/WorkflowView.vue'
import AnalysisView from '../views/AnalysisView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/upload'
    },
    {
      path: '/upload',
      name: 'upload',
      component: UploadView
    },
    {
      path: '/files',
      name: 'files',
      component: FileList
    },
    {
      path: '/viewer',
      name: 'viewer',
      component: VolumeViewer
    },
    {
      path: '/analysis/status',
      name: 'analysis',
      component: AnalysisView
    },
    {
      path: '/segmentation',
      name: 'segmentation',
      component: SegmentationView
    },
    {
      path: '/statistics',
      name: 'statistics',
      component: StatisticsView
    },
    {
      path: '/report',
      name: 'report',
      component: ReportView
    },
    {
      path: '/settings',
      name: 'settings',
      component: SettingsView
    },
    {
      path: '/workflow',
      name: 'workflow',
      component: WorkflowView
    }
  ]
})

export default router
